package com.zx.dao;/**
 * Author:JasonZ
 * Data:2023/4/18
 */

import com.zx.entity.EcommerceAddress;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @program: ecommerce-parent
 *
 * @description:
 *
 * @author: JasonZ
 *
 * @create: 2023-04-18 13:55
 **/

public interface ECommerceAddressDao extends JpaRepository<EcommerceAddress,Long> {
    /*根据id查找地址*/
    List<EcommerceAddress> findAllById(Long id);

    /*根据用户id查找地址*/
    List<EcommerceAddress> findAllByUserId(Long id);

}
